<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>velocity</title>
    <style>
        .element{
            position: absolute;
            width:100px;
            height:100px;
            background-color:#f00;
        }
    </style>
</head>
<body>
    <div class="element">1`23</div>

    <script src="https://cdn.jsdelivr.net/npm/jquery@3.1.0/dist/jquery.min.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/velocity-animate@1.5.0/velocity.min.js"></script>
    <script>
        var scope = "global scope";
        function checkscope(){
            var scope = "locak scope";
            function f(){ return scope; }
            return f;
        }
        console.log(checkscope()());
        $(".element").velocity({
            opacity: 0.5,
            left: 1000,
            backgroundColor: "#00f"
        }, {
            duration: 1000,
            easing: "daseOut",
            begin:function(){
                //console.log('动画开始前');
            },
            complete:function(){
                //console.log("动画结束后");
            }
        });
        $(".element").velocity({
            left:0,
            opacity: 1,
        },{
            duration:1000
        });
        $(".element").velocity({ translateY: 125 }, 1150, [ 2 ]);
    </script>
</body>
</html>